package myIdeal;

public class TestInteger {
    public static void main(String[] args) {
        Integer i1=1000;
        Integer i2=1000;
        System.out.println(i1==i2);
        System.out.println(i1.hashCode());
        System.out.println(i2.hashCode());
        Integer i3=new Integer(100000);
//        new Thread(()->{ v1(i3);},"t").start();
        i3=10000;

    }
    public static void v1(Integer i){
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println(i);
    }
}
